package com.yunxin.admin.system.infra.persistence.converter;

import com.yunxin.admin.system.domain.model.dict.DictType;
import com.yunxin.admin.system.infra.persistence.entity.SysDictTypeDO;
import org.mapstruct.Mapper;

/**
 * @author zero°
 * @since 2023-07-11
 */
@Mapper(componentModel = "spring")
public interface DictTypeConverter {

    /**
     * do 转 entity
     * @param sysDictTypeDO sysDictTypeDO
     * @return DictType
     */
    DictType toDictType(SysDictTypeDO sysDictTypeDO);

    /**
     * entity 转 do
     * @param entity entity
     * @return SysDictTypeDO
     */
    SysDictTypeDO fromDictType(DictType entity);
}
